{% extends "base.html" %}

{% block content %}
	{{ error }}
	
	<form method="post" name="getdata" onSubmit="scramblingkey(); return(false);" action="/">
		<input type="text" id="key" name="key" value="{{ key }}"><div id="check">Incorrect format of Key</div>
		<input type="submit" id="sub" value="OK" class="button white">
	</form>
	
	{% if note %}
	<form method="post" name="updatedata" action="/update">
	    <textarea id="information" name="information" WRAP="virtual" COLS="50" ROWS="15">{{note}}</textarea>
		
		{% ifequal mode "write" %}
		<input type="submit" id="sub" value="Save" class="button white">
		{% endifequal %}
	</form>
	{% endif %}
{% endblock %}